/**
 * 公共方法
 */

export const getBaseUrl = () => {
  let BASE_URL = "";
  if (process.env.NODE_ENV === "development") {
    // 本地环境
    BASE_URL = "https://csp-mch-test.ipaynow.cn/account_access/api/v1"; //测试环境
  } else {
    // 线上环境
    BASE_URL = "https://yishouyun-api.ipaynow.cn/account_access/api/v1"; //线上环境
  }
  return BASE_URL;
};
